package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BusinessGoodTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("goodType")
public class BusinessGoodTypeController {

    @Autowired
    private BusinessGoodTypeService goodTypeService;

    @GetMapping("goodTypelistAll")
    public ResponseResult goodTypelistAll(){
       return goodTypeService.goodListAll();
    }
//
//    /**
//     * 根据传入的类型id查询对应的商品
//     * @param gtId
//     * @return
//     */
//    @GetMapping("/goodTypeById/{gtId}")
//    public ResponseResult goodTypeById(@PathVariable("gtId") Integer gtId){
//        return goodTypeService.goodTypeById(gtId);
//    }
}
